Skip to content

ramboozer/Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utilities lululu im a noob below is a poorly written usage example. this is one of many possiblities

Missing minior things suchas
System.Windows.Forms
System.Threading
Initialization & Form data

===================== Utilities Library Usage example

Using Flux.Utilities;
namespace Flux.Test
{
    public partial class Test : Form
    {
          public Test
          {
                Logging.OnDebug += Logging_OnWrite;
                Logging.OnWrite += Logging_OnWrite;
          }
          
          private void Logging_OnWrite(string message, Color col)
          {
            if(InvokeRequired){
              Invoke(new Logging.WriteDelegate(Logging_OnWrite), message, col);
            }
            else{
                  // You can use whatever you want here
                  // I normally just use a rtb on a seprate tab or window
                  rtbLog.SelectionColor = col;
                  rtbLog.AppendText(message + Environment.NewLine);
                  rtbLog.ScrollToCaret();
                }
          }
          
          private void Test_Load(object sender, EventArgs e)
          {
            Logging.Write(Color.blue, "The form has loaded!");
          }
    }
}

About

Utilities Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages