コード例 #1
0
ファイル: ArcLogin.cs プロジェクト: neg2led/ArcConfigViewer
 /// <summary>
 /// Multi-threaded callback. Don't call this; it's automatic.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void TestLogin(object sender, ArcWaitWindowEventArgs e)
 {
     if (e.Arguments.Count == 1)
     {
         e.Result = TestLogin(false, (bool)e.Arguments[0]);
     }
 }
コード例 #2
0
 private static void GetFwVersion(object sender, ArcWaitWindowEventArgs e)
 {
     if (e.Arguments.Count == 1)
     {
         var silent = (bool)e.Arguments[0];
         e.Result = GetFwVersion(false, silent);
     }
 }
コード例 #3
0
 private void LoadTreeView(object sender, ArcWaitWindowEventArgs e)
 {
     if (e.Arguments.Count == 1)
     {
         var directory = (string)e.Arguments[0];
         LoadTreeView(directory, false);
     }
 }
コード例 #4
0
ファイル: ArcModem.cs プロジェクト: neg2led/ArcConfigViewer
 public static void IsArcadyanModem(object sender, ArcWaitWindowEventArgs e)
 {
     if (e.Arguments.Count == 1)
     {
         var silent = (bool)e.Arguments[0];
         e.Result = IsArcadyanModem(false, silent);
     }
 }
コード例 #5
0
ファイル: ArcLogin.cs プロジェクト: neg2led/ArcConfigViewer
        /// <summary>
        /// Multi-threaded callback. Don't call this; it's automatic.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void DoLogin(object sender, ArcWaitWindowEventArgs e)
        {
            if (e.Arguments.Count == 2)
            {
                //credentials
                var auth = (ArcCredential)e.Arguments[0];

                //warning mode
                var warn = (bool)e.Arguments[1];

                //return result from offloaded thread
                e.Result = DoLogin(auth, false, warn);
            }
        }
コード例 #6
0
        private static void ExportThis(object sender, ArcWaitWindowEventArgs e)
        {
            if (e.Arguments.Count != 4)
            {
                return;
            }

            var table    = (DataTable)e.Arguments[0];
            var format   = (ExportFormat)e.Arguments[1];
            var fileName = (string)e.Arguments[2];
            var silent   = (bool)e.Arguments[3];

            ExportThis(table, format, fileName, silent, false);
        }
コード例 #7
0
 /// <summary>
 /// What's this?<br />
 /// This is the wait window callback for multi-threading
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void GrabJS(object sender, ArcWaitWindowEventArgs e)
 {
     e.Result = GrabJS(false);
 }
コード例 #8
0
ファイル: ArcToken.cs プロジェクト: neg2led/ArcConfigViewer
 private void Revoke(object sender, ArcWaitWindowEventArgs e)
 {
     e.Result = Revoke(false);
 }
コード例 #9
0
ファイル: ArcArchive.cs プロジェクト: neg2led/ArcConfigViewer
        private static void ProcessConfigArchive(object sender, ArcWaitWindowEventArgs e)
        {
            var cipherBytes = (byte[])e.Arguments[0];

            ProcessConfigArchive(cipherBytes, false);
        }
コード例 #10
0
 private void LoadEntireDatabase(object sender, ArcWaitWindowEventArgs e)
 {
     e.Result = LoadEntireDatabase(false);
 }