コード例 #1
0
ファイル: Nest Trader Class.cs プロジェクト: theclai/My_Trend
        bool Nest_Trader_Is_Visible()
        {
            Windows_Api_Class.WINDOWPLACEMENT Window_Place_Ment = Windows_Api_Class.GetPlacement(Nest_Trader_Form.Nest_Trader_Form_Instance.Nest_Trader_Id);

            if (Window_Place_Ment.showCmd == Windows_Api_Class.ShowWindowCommands.Minimized || Window_Place_Ment.showCmd == Windows_Api_Class.ShowWindowCommands.Hide || !Windows_Api_Class.IsWindowVisible(Nest_Trader_Form.Nest_Trader_Form_Instance.Nest_Trader_Id))
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
ファイル: Nest Trader Class.cs プロジェクト: theclai/My_Trend
        /*
         *   1) if Nest Trader is Visible and Order Entry not - its closed forcefully so we return -1
         *   2) if Nest Trader is not Visible and Order Entry not visible - restart the process
         */

        bool Order_Entry_Is_Opened(IntPtr Order_Entry_Handle)
        {
            return(Windows_Api_Class.IsWindowVisible(Order_Entry_Handle));
        }