//-------------------------------------------------------------------------
 private void f_selected_sodx_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (_threadProcess != null)
     {
         _threadProcess.StopThread(500);
         _threadProcess.Dispose();
         _threadProcess = null;
     }
 }
 //-------------------------------------------------------------------------
 public f_selected_sodx()
 {
     InitializeComponent();
     _sodx_command             = null;
     UpdatedDataToFormDelegate = new UpdatedDataToFormDelegateHandler(FuncUpdatedDataToForm);
     UpdatedFormToDataDelegate = new UpdatedFormToDataDelegateHandler(FuncUpdatedFormToData);
     _threadProcess            = new cThreadProcess(Enum.GetValues(typeof(eThreadAction)).Length);
     _threadProcess.StartThread(new ThreadStart(ThreadLoop));
 }
Beispiel #3
0
 private void f_splash_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (_threadGui != null)
     {
         _threadGui.StopThread(500);
         _threadGui.Dispose();
         _threadGui = null;
     }
 }
Beispiel #4
0
 private void f_splash_Load(object sender, EventArgs e)
 {
     _threadGui = new cThreadProcess("f_splash.Guid", 0);
     _threadGui.StartThread(new ThreadStart(ThreadGuiLoop));
     pic_logo.SizeMode    = PictureBoxSizeMode.Zoom;
     pic_logo.Image       = cResources.GetImageLogo;
     pic_logo.Visible     = (pic_logo.Image != null);
     lbl_starting.Visible = (pic_logo.Image == null);
     lbl_version.Visible  = (_version != null);
     lbl_version.Text     = string.Format("Version : {0}", _version);
 }