예제 #1
0
        private void OFPCheck()
        {
            if (Clipboard.ContainsText() == true)
            {
                //SITAOFPHelper.PreOpsStatic.OFPinside
                if (OFP.OFPinside(OFP.GetTrimmedMassive(Clipboard.GetText())) == true)
                {
                    OFP_forList CurentOFP = new OFP_forList(Clipboard.GetText());

                    ((App)Application.Current).OFPLIST.Add(CurentOFP);
                }
            }
        }
예제 #2
0
        private void OFPCheck()
        {
            if (Clipboard.ContainsText() == true)
            {
                if (OFP.OFPinside(OFP.GetTrimmedMassive(Clipboard.GetText())) == true)
                {
                    OFP CurentOFP = new OFP(Clipboard.GetText());

                    ((App)Application.Current).OFPLIST.Add(CurentOFP);

                    char tempchar = '0';
                    if (mode1.IsChecked == true)
                    {
                        tempchar = '1';
                    }
                    if (mode2.IsChecked == true)
                    {
                        tempchar = '2';
                    }
                    if (mode9.IsChecked == true)
                    {
                        tempchar = '9';
                    }
                    bool tempbool = true;
                    if (USE_REG_Switch.IsChecked == true)
                    {
                        tempbool = true;
                    }
                    if (USE_REG_Switch.IsChecked == false)
                    {
                        tempbool = false;
                    }

                    string teststring = CurentOFP.generateCHG(tempchar, tempbool);
                    Clipboard.Clear();
                    FlowDocument document1 = new FlowDocument();
                    FlowDocument document2 = new FlowDocument();

                    FPLrtb.Document = document1;
                    FPLrtb.AppendText(CurentOFP.IcaoFPL.FPLstring.ToString());
                    CHGrtb.Document = document2;
                    CHGrtb.AppendText(teststring);
                    Clipboard.SetText(teststring);
                }
            }
        }