Beispiel #1
0
        void IPrintLayout.AddLogo(ILogo logo)
        {
            var l = logo as PrintLayoutLogo;

            if (l != null)
            {
                this.CustomLogos.Add(l);
                OnPropertyChanged("CustomLogos"); //NOXLATE
            }
        }
        private void AddLogoToListView(ILogo logo)
        {
            var item = new ListViewItem(logo.Name);
            item.Tag = logo;

            //TODO: It would be really nice to show the actual
            //symbol here

            lstCustomLogos.Items.Add(item);
        }
Beispiel #3
0
        void IPrintLayout.AddLogo(ILogo logo)
        {
            var l = logo as PrintLayoutLogo;

            if (l != null)
            {
                this.CustomLogos.Add(l);
                OnPropertyChanged(nameof(CustomLogos));
            }
        }
Beispiel #4
0
        private void AddLogoToListView(ILogo logo)
        {
            var item = new ListViewItem(logo.Name);

            item.Tag = logo;

            //TODO: It would be really nice to show the actual
            //symbol here

            lstCustomLogos.Items.Add(item);
        }
Beispiel #5
0
        private void RemoveLogoFromListView(ILogo logo)
        {
            ListViewItem remove = null;

            foreach (ListViewItem item in lstCustomLogos.Items)
            {
                if (item.Tag == logo)
                {
                    remove = item;
                    break;
                }
            }
            lstCustomLogos.Items.Remove(remove);
        }
Beispiel #6
0
        public void WriteLogo(TextWriter writer, ILogo logo)
        {
            var arr    = logo.LogoMatrix;
            var height = arr.GetUpperBound(0);
            var len    = arr.GetUpperBound(1);

            for (int i = 0; i <= height; i++)
            {
                for (int j = 0; j <= len; j++)
                {
                    if (arr[i, j])
                    {
                        writer.Write(textSymbol);
                    }
                    else
                    {
                        writer.Write(backgroundSymbol);
                    }
                }
                writer.WriteLine();
            }
        }
Beispiel #7
0
 void IPrintLayout.AddLogo(ILogo logo)
 {
     var l = logo as PrintLayoutLogo;
     if (l != null)
     {
         this.CustomLogos.Add(l);
         OnPropertyChanged("CustomLogos"); //NOXLATE
     }
 }
Beispiel #8
0
        public void ChangeEmotion(int emotion)
        {
            if (_ILogo != null)
            {
                _ILogo.DoStop();
            }

            if (emotion == CApp.EMOTION_EYE)
            {
                _ILogo = new LogoEye(PbApp, this.components);
            }
            else
            {
                _ILogo = new LogoIco(PbApp, this.components);
            }
            _ILogo.DoWork();
        }
Beispiel #9
0
 // L'instanciation du paramètre repo se fait dans NInject dans ce constructor
 public InjectController(IRepository repo, ILogo logo)
 {
     Repo = repo;
     Logo = logo;
 }
 public static string GetAwesomeLogo(ILogo that) => that.Value <string>("awesomeLogo");
 private void RemoveLogoFromListView(ILogo logo)
 {
     ListViewItem remove = null;
     foreach (ListViewItem item in lstCustomLogos.Items)
     {
         if (item.Tag == logo)
         {
             remove = item;
             break;
         }
     }
     lstCustomLogos.Items.Remove(remove);
 }